package com.simpou.commons.utils.functional;

/**
 * Realiza uma ação e lança todos erros se ocorrerem.
 *
 * @author Jonas Pereira
 * @since 2013-10-23
 */
public abstract class AbstractActionThrowErrors<T, E> implements Action<T, E> {

    @Override
    public final void doOnError(T object, Throwable throwable) {
        throw new RuntimeException("Object cause: "+object, throwable);
    }
}
